package com.evildog.workspace.life.application.service;

import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;

import com.evildog.workspace.common.object.PageQuery;
import com.evildog.workspace.common.result.PagedResult;
import com.evildog.workspace.life.application.bo.DiaryPageBO;
import com.evildog.workspace.life.application.bo.DiaryListBO;
import com.evildog.workspace.life.application.bo.DiaryBO;
import com.evildog.workspace.life.application.dto.DiaryPageDTO;
import com.evildog.workspace.life.application.dto.DiaryListDTO;
import com.evildog.workspace.life.application.dto.DiaryDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import com.evildog.workspace.life.application.entity.Diary;

/**
 * <p>
 * diary Service
 * </p>
 *
 * @author evildog
 * @since 2020-08-02
 */
public interface DiaryService extends IService<Diary> {

    /**
    * 自定义分页
    */
    PagedResult<DiaryPageBO> getPageList(PageQuery query, List<QueryConditionDTO> queryConditions, DiaryPageDTO pageDTO);


    /**
    * 获取详情
    */
    DiaryBO getDetailById(Long id);

    /**
    * 更新
    */
    boolean updateById(Long id, DiaryDTO param);

    /**
    * 保存
    */
    boolean save(DiaryDTO param);
}
